import Vue from 'vue'
import App from './App.vue'
import store from './store'

import Category from './model/CateEnum'

import ItemData from './model/ItemData'

// import Category from './model/CateEnum'
// import ItemData from './model/ItemData'
import ActionHelper from './store/ActionHelper'

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  store
}).$mount('#app')

// let item1 = new ItemData(1994, Category.Study, '来前端', '快乐学习')
// console.log(item1)

// let actionHelper = new ActionHelper()
// console.log(actionHelper.dataHelper, '看看dataHelper是啥', actionHelper.memoList, '看看笔记数组是啥')

// 测试新增
// let newItem = new ItemData(100, Category.Life, '我喜欢单手开法拉利', '朴实无华且枯燥')
// newItem.id = actionHelper.add(newItem)
// console.log(newItem.id, '啥id')

// 测试修改
// let newItem = new ItemData(13, Category.Life, '单手开拖拉机', '朴实无华且枯燥')
// actionHelper.edit(newItem)

// 测试删除
// actionHelper.remove(16)

